{if condition=" $box_is_pjax != 1 "}
<!--头部导航-->
<header class="main-header">

    <a href="{$Think.H_NAME}" class="logo hidden-xs">
        <span class="logo-mini"><i class="fa fa-home fa-lg"></i></span>
        <span class="logo-lg">{:confv('title')}</span>
    </a>

    <nav class="navbar navbar-static-top">

        <a href="#" class="sidebar-toggle hidden-xs" data-toggle="offcanvas" role="button">
            <span class="sr-only">www.xzyn.cn</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
            	{eq name="is_music" value="1"} 	<!--音乐播放器-->
            	<li id="skPlayer"></li>
            	{/eq}
				{notempty name="$user['id']"}
                <!--<li class="dropdown notifications-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-bell-o"></i>
                        <span class="label label-warning">10</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="header">你有10个通知</li>
                        <li>
                            <ul class="menu">
                                <li>
                                    <a href="#">
                                        <i class="fa fa-users text-aqua"></i>今天有 5 人加入
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="footer">
                            <a href="#">显示全部</a>
                        </li>
                    </ul>
                </li>-->
				{/notempty}
                <li class="dropdown notifications-menu  user-menu">
                    <a href="#" id="goLoginBtn" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="{$user['userinfo']['avatar_turn']|default='/static/common/img/default.png'}" class="user-image{empty name='$user["id"]'} hidden-xs{/empty}">
                        {empty name="$user['id']"}
                        <span class="visible-xs-block">登录</span>
                        <span class="hidden-xs">注册/登录</span>
                        {else /}
                        <span class="hidden-xs">{$user['name'] ?: $user['username']}</span>
                        {/empty}
                    </a>
                    {empty name="$user['id']"}
                    <ul class="dropdown-menu opendonghua">
		              	<li>
							<form class="DlZck collapse in" id="dlk" action="{:url('login/index')}" method="post" onsubmit="return false">
								<input type="hidden" name="type" value="login">
					        	<div class="x-p-10">
								    <div class="form-group has-feedback">
								        <input type="text" name="username" class="form-control" placeholder="用户名">
								        <span class="glyphicon glyphicon-user form-control-feedback"></span>
								    </div>
								    <div class="form-group has-feedback">
								        <input type="password" name="password" class="form-control" placeholder="密码">
								        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
								    </div>
								    <div class="text-center">
								    	<button type="button" class="submits btn btn-danger x-mr-20">确认登录</button>
								    	<button type="button" class="goOpen btn btn-success">去注册</button>
								    </div>
					       		</div>
							</form>
							<form class="DlZck collapse" id="zck" action="{:url('login/index')}" method="post" onsubmit="return false">
		              			<div class="x-p-10">
								    <div class="form-group has-feedback">
								        <input type="text" name="username" class="form-control" placeholder="用户名">
								        <span class="glyphicon glyphicon-user form-control-feedback"></span>
								    </div>
								    <div class="form-group has-feedback">
								        <input type="email" name="email" class="form-control" placeholder="邮箱地址">
								        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
								    </div>
								    <div class="form-group has-feedback">
								        <input type="password" name="password" class="form-control" placeholder="密码">
								        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
								    </div>
								    <div class="form-group has-feedback">
								        <input type="password" name="repassword" class="form-control" placeholder="确认密码">
								        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
								    </div>
								    <div class="text-center">
								    	<button type="button" class="submits btn btn-danger x-mr-20">确认注册</button>
								    	<button type="button" class="goOpen btn btn-success">去登录</button>
								    </div>
		              			</div>
							</form>
		              	</li>
		              	<li class="x-x-t">
		              		<div class="extend_login x-p-10">
		              			<span class="x-mr-10">第三方登录</span>{include file="common@public/extend_login" /}
		              		</div>
		              	</li>
		          	</ul>
                    {else /}
                    <ul class="dropdown-menu">
                        <li class="user-header">
                            <img src="{$user['userinfo']['avatar_turn']}" class="img-circle">
                            <p>欢迎：{$user['name'] ?: $user['username']}
                                <small>{$user['create_time']} 加入</small>
                            </p>
                        </li>
                        <!--<li class="user-body">
                            <div class="row">
                                <div class="col-xs-4 text-center">
                                    <a href="#">下属</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">销售额</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">朋友</a>
                                </div>
                            </div>
                        </li>-->
                        <li class="user-footer text-center">
                            <div class="pull-left">
                                <a href="{:url('member/index/index')}" class="btn btn-default btn-flat">会员中心</a>
                            </div>
                            {eq name="$user['id']" value="1"}
                            <span><a href="{:url('admin/index/index')}" target="_blank" class="btn btn-default btn-flat">后台管理</a></span>
                            {/eq}
                            <div class="pull-right">
                                <a href="javascript:void(0);" data-dataobj='{"title":"退出提示","info":"{$user['name']}，您确定要退出吗?","url":"{:url('index/login/loginOut')}","data":{"id":"{$user['id']}"}}' class="popups btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                    {/empty}
                </li>

                <li>
                    <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                </li>
            </ul>
        </div>
    </nav>
</header>

{/if}